/**
 * 
 */
package net.homelinux.ajay.net.ondisk.model.client;



import com.google.gwt.http.client.Request;
import com.google.gwt.http.client.RequestCallback;
import com.google.gwt.http.client.RequestException;
import com.google.gwt.http.client.Response;

/**
 * @author ajay
 *
 */
public abstract class HttpWorker {

  private static HttpWorker instance;

  public static HttpWorker getInstance() {
    return instance;
  }
  
  public static void setInstance(HttpWorker worker) {
    instance = worker;
  }
  
  static {
    setInstance(new GWTHttpWorker());
  }

  public abstract Request getHead(String url, RequestCallback hmeta) throws RequestException;

}
